package common

import (
	v1 "Project/api/v1"
	"github.com/gin-gonic/gin"
)

type CasbinRouter struct{}

func (s *CasbinRouter) InitCasbinRouter(Router *gin.RouterGroup) {
	CasbinRouter := Router.Group("casbin")
	casbinRouterWithoutRecord := Router.Group("casbin")
	casbinApi := v1.ApiGroupApp.CommonApiGroup.CasbinApi
	{
		CasbinRouter.GET("list", casbinApi.GetPolicyPathByAuthorityId)
	}
	{
		casbinRouterWithoutRecord.POST("")
	}
}
